<!DOCTYPE html>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">
.main
{
position:absolute;
right:300px;
left:300px;
}

</style>
<link rel="stylesheet" type="text/css" href="tabs.css" />

</head>

<body bgcolor= #ccffcc>

<div class=main>
<font color=#006784 size=24>E_COMMERCE WEBSITE</font>


<?php   $section = 'admin'; ?>
        <?php include ('tabs.php'); ?>
    
    
<?
        require_once('Data.php');
        
        if(isset($_REQUEST['refer']))
                $refer = $_REQUEST['refer'];
        elseif(isset($_SERVER['HTTP_REFERER']))
                $refer = $_SERVER['HTTP_REFERER'];
        else
                $refer = 'index.php';
                
        if(isset($_REQUEST['email']))
        {
                if(DoLogin1($_REQUEST['email'], $_REQUEST['password']))
                        header("location: $refer");
        }
?>
      

<div class="content">
<font color=#006784>
<?
require_once('Data.php');

if(!IsLoggedIn())
{
 
?>  
<br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br>
<form method="post">
<h1>Administrator Login</h1>
        Email Id:<input type="text" name="email" /><br/>
        PassWord:<input type="password" name="password" /><br/>
        <input type="hidden" name="refer" value="<?=$refer?>" />
        <input type="submit" value="Login" /> <br/>
</form><?} 
else {?>
<br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br>
Log Out From Previous Session<br>
Thank you<?}?>

</font>


</div>
</center>
</body>
</html>
